import request from '@/util/request'

//课程有关的
export const course = (data) => {
  // return request.post('/Course/SelectAll', Id)
  return request({
    url: '/Course/SelectAll',
    method: 'post',
    data: data
  })
}

// 教师
export const TeaCourse = (data) => {
  return request({
    url: '/Course/SelectAll',
    method: 'post',
    data: data
  })
}

export const CourseClass = (data) => {
  return request({
    url: '/Class/SelectClass',
    method: 'post',
    data: data
  })
}

// 发送通知
export const TeaNotice = (data) => {
  return request({
    url: '/Tool/upload',
    method: 'post',
    data: data
  })
}

//拿到后端通知
export const GetNotice = (data) => {
  return request({
    url: '/Tool/selectNotice',
    method: 'post',
    data: data
  })
}

// 全部班级
export const classAll = () => {
  return request({
    url: '/Class/GetClass',
    method: 'get'
  })
}

// 学生
export const stuAll = (data) => {
  return request({
    url: '/Stu/SelectAll',
    method: 'post',
    data: data
  })
}
